/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.IntStream;
import java.util.stream.Stream;

/**
 * <p>Project: jse2302 - Ex2
 * <p>Powered by webrx On 2023-06-29 08:28:31
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Ex2 {
    public static void main(String[] args) {
        List<Integer> list = new ArrayList<>(List.of(1, 2, 3, 4, 5));
        Stream<Integer> stream = list.stream();
        Stream<Integer> is = stream.filter(a -> a < 5);
        is.forEach(System.out::println);
    }
}
